import http from '/@/utils/http';

/**
 * 账号信息api接口集合
 * @method getLoginUserInfoApi 获取登录用户信息
 * @method updatePortraitOrSexApi 修改头像或性别
 * @method updateUserAccountApi 修改用户账号
 */

export const getLoginUserInfoApi = async () => {
    return await http.get(`/user/mobile/userInfo/getLoginUserInfo`)
}

export const updatePortraitOrSexApi = async (params: any) => {
    return await http.put(`/user/mobile/userInfo/updatePortraitOrSex`, params)
}

export const updateUserAccountApi = async (params: any) => {
    return await http.put(`/user/mobile/userInfo/updateUserAccount`, params)
}

export const updateLoginUserInfoApi = async (params: any) => {
    return await http.put(`/user/mobile/userInfo/updateLoginUserInfo`, params)
}